import { postHttp, getHttp, pathHttp } from "../utils/http";

const api = {
    apiLogin: (data) => {
        return postHttp("/user/login", data);
    },
    getUser: () => {
        return getHttp("/user");
    },
    setUser: (data) => {
        return pathHttp("/user", data);
    },
    //获取收藏
    getFavorites: () => {
        return getHttp("/user/favorites");
    },
    //获取我发布的房源
    getMyRoomList: () => {
        return getHttp("/user/houses");
    },

}
export default api;